#!/bin/bash

PWD1=`pwd`
PWD2=`dirname $0`
PATH=$PWD1:$PWD2:./:$PATH 

cd "`pwd`"

if [ ! "$1" = "" ]
then
    input_dir=$1
else
    input_dir=.
fi

find "$input_dir" -type f | grep -v "`basename $0`" | grep -v ".DS_Store" | while read line
do
    addDatePrefixToFilename.sh "$line"
done
